package utils;

import javax.swing.*;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class Tool {

    public static void mess(String message) {
        JOptionPane.showMessageDialog(null, message);
    }

    public static String getDateAfterOneMonth() {
        LocalDate currentDate = LocalDate.now();
        LocalDate dateAfterOneMonth = currentDate.plusMonths(1);
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        return dateAfterOneMonth.format(formatter);
    }

    public static void main(String[] args) {
        mess("1");
    }
}
